package qimao.com.edu.entity;

import jakarta.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * 作品小类表
 * @author 86173
 *
 */
//@Entity
//@Table(name = "category_minor")
public class CategoryMinor {
	/**
	 * 详细类id
	 */
//    @Id
//    @Column(name = "minor_id", nullable = false)
    private Integer minorId;
    /**
	 * 大类id
	 */
//    @JoinColumn(name = "parent_id", nullable = false)
    private CategoryMajor parent;
    /**
	 * 详细类名
	 */
//    @Column(name = "minor_name", nullable = false, length = 50)
    private String minorName;
    
	public CategoryMinor() {
		super();
	}

	public CategoryMinor(Integer minorId, CategoryMajor parent, String minorName) {
		super();
		this.minorId = minorId;
		this.parent = parent;
		this.minorName = minorName;
	}

	public Integer getMinorId() {
		return minorId;
	}

	public void setMinorId(Integer minorId) {
		this.minorId = minorId;
	}

	public CategoryMajor getParent() {
		return parent;
	}

	public void setParent(CategoryMajor parent) {
		this.parent = parent;
	}

	public String getMinorName() {
		return minorName;
	}

	public void setMinorName(String minorName) {
		this.minorName = minorName;
	}

	@Override
	public String toString() {
		return "CategoryMinor [minorId=" + minorId + ", parent=" + parent + ", minorName=" + minorName + "]";
	}
    
    
}
